package com.tuanzi.loan.business.repository.settlementsystem;

import com.tuanzi.loan.business.entity.settlementsystem.SettlementIncomeActivity;
import com.tuanzi.loan.business.repository.settlementsystem.custom.SettlementIncomeActivityRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-20 20:22
 */
public interface SettlementIncomeActivityRepository
        extends SettlementIncomeActivityRepositoryCustom,JpaRepository<SettlementIncomeActivity,Long> {

    SettlementIncomeActivity findSettlementIncomeActivityByActivityIdAndIncomeId(Long activityId,Long incomeId);

    List<SettlementIncomeActivity> findAllByIncomeId(Long incomeId);
}
